From fdb007bccdcfa40c0dc081c1df972f27255356ae Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 15 Sep 2005 01:49:39 +0000 Subject: [PATCH] Whitespace is OK in shortname for magellanX (with 20 char names), but not magellan (8). git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1426 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/magproto.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index f252e9da8..ff234827d 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -851,6 +851,7 @@ magX_wr_init(const char *portname) wpt_len = 20; mag_wr_init_common(portname); setshort_length(mkshort_handle, wpt_len); + setshort_whitespace_ok(mkshort_handle, 1); } static void @@ -858,6 +859,12 @@ mag_wr_init(const char *portname) { wpt_len = 8; mag_wr_init_common(portname); + /* + * Whitespace is actually legal, but since waypoint name length is + * only 8 bytes, we'll conserve them. + */ + + setshort_whitespace_ok(mkshort_handle, 0); } static void @@ -1401,12 +1408,6 @@ mag_route_pr() static void mag_write(void) { - /* - * Whitespace is actually legal, but since waypoint name length is - * only 8 bytes, we'll conserve them. - */ - - setshort_whitespace_ok(mkshort_handle, 0); wptcmtcnt = 0; -- 2.30.2